# 损失函数不可以是mse
# 损失函数叫交叉熵

import numpy as np

y_true = np.array([0,1,1,0])
y_predict = np.array([0.3,0.9,0.9,0.4])
entropy = y_true * np.log(y_predict)
entropy = -(entropy).sum()
print(entropy)